import request from '@/utils/request'

export const addOneShop = data => request({
  url: '/addOneShop',
  method: 'put',
  data: data || {}
})

export const deleteOneShop = id => request({
  url: '/deleteOneShop/' + id,
  method: 'delete'
})

export const updateOneShop = data => request({
  url: '/updateOneShop',
  method: 'patch',
  data: data || {}
})

export const getOneShop = id => request({
  url: '/getOneShop/' + id,
  method: 'get'
})

export const getShopList = data => request({
  url: '/getShopList',
  method: 'post',
  data: data || {}
})

export const getAllShopList = () => request({
  url: '/getAllShopList',
  method: 'get'
})

